package com.bbcare.oms.plat.store.ibatis;

import com.bbcare.oms.plat.entity.AuRoleMenuAuth;
import java.util.List;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

@CacheNamespace(readWrite=true)
public abstract interface IAuRoleMenuAuthDAO
{
  @Select({"select * from au_role_menu_auth where id=#{id}"})
  public abstract AuRoleMenuAuth select(String paramString)
    throws Exception;
  
  @Select({"select * from au_role_menu_auth where role_id=#{roleId} and menu_type='nav' and status='1'"})
  @Results({@org.apache.ibatis.annotations.Result(property="resource.id", column="menu_version_id")})
  public abstract List<AuRoleMenuAuth> getAuRoleMenuAuthByRole(String paramString)
    throws Exception;
  
  @Select({"select * from au_role_menu_auth where parent_id=#{parentId} and menu_type='nav'"})
  @Results({@org.apache.ibatis.annotations.Result(property="resource.id", column="menu_version_id")})
  public abstract List<AuRoleMenuAuth> getAuRoleMenuAuthByParent(String paramString)
    throws Exception;
}


/* Location:              C:\Users\ZCL\Desktop\oms\oms\oms\WEB-INF\classes\com.zip!\com\bbcare\oms\plat\store\ibatis\IAuRoleMenuAuthDAO.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */